Home

Getting Started

*Defaults

  All Gadget have a default setting. Setting default colors,sizes and positions for gadget Can save time when creating new gadgets. For example, A if the defaut color for a TextBox is set to blue all TextBoxs will be set with the color blue when created. Defaults are not part of the api language because it is much quicker to edit each type indevidually. The #include. File named "Default can be edited manually."

  GetTextBoxBgImage(ID)   Returns Background ID or -1.

  GetTextBoxHeight(ID)   Returns Height.

  GetTextBoxWidth(ID)   Returns Width.

  SetTextBoxBgColor(ID,Color)   `Accepts color from makecolor(),Sets Background color of sprite, Accepts Alpha value.

  SetTextBoxBGImage(ID,ImageID)   `Accepts Integer, Sets Background image.

  SetTextBoxBorderWidth(ID,Width)   `Accepts Integer, Sets Border Width.

  SetTextBoxDragAndDrop(ID,Bool)   ` Accepts Integer 1-0, 1 enalbes TextBox to be dropped onto other gadgets, 0 false.

  SetTextBoxHoverState(ID)   Returns 1 if TextBox is being hovered, else 0.

  SetTextBoxVisible(ID,Boolean)   `Sets TextBox visible or hidden 1 visible, 0 hidden.

  GetTextBoxText(ID)   Returns Text String or -1

  SetTextBoxDepth(ID,Depth)   Accepts Integer, Forces TextBox to add or subtract depth to its depth sorting.

  SetTextBoxHeight(ID,Height)   `Accepts integer sets the height.

  SetTextBoxWidth(ID,Width)   Accepts integer sets the width.

  SetTextBoxSize(ID,Width,Height)   Accepts integer sets the width and height.

  SetTextBoxPaddingWidth(ID,Width)   `Accepts Integer, Sets Padding Width.

  SetTextBoxPaddingColor(ID,Color)   `Accepts color from makecolor(),Sets Padding color of sprite, Accepts Alpha value.

  SetTextBoxBorderColor(ID,Color)   `Accepts color from makecolor(),Sets Border color of sprite, Accepts Alpha value.

  SetTextBoxColor(ID,Integer)   `Accepts color from makecolor(), Sets entire sprite to specified color.

  SetTextBoxAlpha(ID,AlphaValue)   `Accepts integer 0-255, Sets entire Sprite to the specified alpha value

  SetTextBoxEditMode(ID,Bool)   `Accepts Integer 1-0, overides settings enables all api features,"TextBox action will be disabled while in edit mode"

  SetTextBoxToolTip(ID,String)   Accepts String, Sets TextBox to generate and destroy a tooltip preview on hover. Hover Must be enabled see SetTextBoxActivateHover(ID,Bool)

  SetTextBoxDrag(ID,Bool)   `Accepts integer 0-1,Enables Dragging

  SetTextBoxResize(ID,Bool)   `Accepts integer 0-1,Enables Resizing

 SetTextBoxActivateMode(ID,Bool)   `Accepts integer 0-1, (1) Enables Hover to activate, "0" Default Behavior

  SetTextBoxHighlight(ID,Bool)   `Accepts Integer 1-0, Enables Highlighting